// 添加资源
import * as PIXI from "pixi.js";

// 图片路径 存放在 public/textures/****.png
PIXI.Assets.add("jt", "./textures/jt.png");
PIXI.Assets.add("jt1", "./textures/jt1.png");
PIXI.Assets.add("jt2", "./textures/jt2.png");
PIXI.Assets.add("line1", "./textures/line1.png");
PIXI.Assets.add("line2", "./textures/line2.png");
PIXI.Assets.add("line3", "./textures/line3.png");
PIXI.Assets.add("line4", "./textures/line4.png");
PIXI.Assets.add("line5", "./textures/line5.png");

export let texturesPromise = PIXI.Assets.load(["jt","jt1","jt2","line1","line2","line3","line4","line5"],
(progress) => {
    if(progress == 1){
        // console.log("加载完成:");
    }
});

